package test1231;

// JDK1.8开始
public interface Z {
    default void m2() {
        System.out.println("实现");
    }
}

class H implements Z {
    public void m2() {
        System.out.println("重写");
    }
    public static void main(String[] args) {
        H h = new H();
        h.m2();
    }
}
